import random
djn = random.randint(1,100)
temp = input("请输入一个数，开始游戏")
guess = int(temp)

while guess != djn:
    temp = input("再输一次")
    guess = int(temp)
    if guess == djn:
        print("你对了")
    else:
        if guess > djn:
           print("大了")
        else:
           print("小了")
print("游戏结束")
